<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>10_ng-repeat</title>
    <script src="../lib/angularjs.js"></script>
</head>

<body ng-app="myApp" ng-controller="myCtrl">
    <h1 ng-repeat="(i, v) in arr">{{v}}: {{i}}</h1>
    <h2 ng-repeat="(key, value) in obj"><span>{{key}}：</span><span>{{value}}</span></h2>
</body>

<script>
    const myApp = angular.module("myApp", [])
    myApp.controller("myCtrl", ["$scope", function ($scope) {
        $scope.arr = ["前端", "后端", "运维", "测试", "UI设计师"]
        $scope.obj = {
            FE: "前端工程师",
            BE: "后端工程师",
            TESTOR: "测试工程师",
            DESIGNER: "UI设计师"
        }
    }])
</script>

</html>